<%--
  Created by IntelliJ IDEA.
  User: 13972
  Date: 2020/8/8
  Time: 15:32
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>个人信息及修改</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link href="images/style.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        function checkDo(){
            alert("修改成功！")
            window.location.href="index.html";
        }




    </script>
</head>
<body style="margin:5px!important;margin:3px;">
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <h1 class="text-center text-info">
                荔 子 网 上 花 店
            </h1>
        </div>
    </div>

    <!-- 订单列表 -->
    <div class="col-md-12 column">
        <ul class="nav nav-tabs">
            <li>
                <a href="index.html">首页</a>
            </li>
            <li>
                <a href="gouwuche.html">我的购物车</a>
            </li>
            <li>
                <a href="wodedingdan.html">我的订单</a>
            </li>
            <li>
                <a href="wodexinxi.html">我的信息</a>
            </li>

        </ul>


    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <h3 class="text-center text-info">
                查看或修改我的信息
            </h3>

            <form class="form-horizontal" role="form" action="xiugai.html" method="get" >

                <c:forEach items="${userss}" var="users">
                <div class="form-group">
                    <label for="inputName" class="col-sm-2 control-label">用户名</label>
                    <div class="col-sm-2">
                        <input name="Name" type="text" class="form-control" id="inputName" placeholder="用户名不可修改" value="${users.name}"  />
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPhone" class="col-sm-2 control-label">电话</label>
                    <div class="col-sm-10">
                        <input name="Phone" type="text" class="form-control" id="inputPhone" placeholder="修改联系方式" value="${users.phone}" />
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputAddress" class="col-sm-2 control-label">地址</label>
                    <div class="col-sm-10">
                        <input name="Address" type="text" class="form-control" id="inputAddress" placeholder="修改地址"value="${users.address}" />
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-2 control-label">密码</label>
                    <div class="col-sm-10">
                        <input name="Password" type="text" class="form-control" id="inputPassword" placeholder="修改密码"value="${users.password}" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default" onclick="checkDo()" >确定修改</button>
                    </div>
                </div>
            </form>
            </c:forEach>
        </div>
    </div>
</div>

<div class="jumbotron text-center" style="margin-bottom:0">
    <p>Du  dan</p>
</div>
</body>
</html>
